$(function() {
	var userGrid = $("#bedRoomStudentLeftGrid");
	var gender = $("#studentgender").val();
	userGrid.datagrid({
		url: 'bedroom/studentlist'+ (gender ? ("/" + gender) : ""),
		fit: true,
		pagination: true,
		border: false,
		fitColumns:true,
		rownumbers:true,
		emptyMsg:"<img   src='public/images/noTwo.png'>",
		columns: [
			[{
				field: 'checkbox',
  				width: 100,
				align: 'center',
				checkbox: true,
				hidden: false
			}, {
				field: 'id',
				width: 20,
				align: 'center',
				hidden: true
			}, {
				field: 'name',
				title: '姓名',
				align: 'center',
				width: 50,
				hidden: false
			}, {
				field: 'gender',
				title: '性别',
				align: 'center',
				width: 50,
				hidden: false
			}]
		]
	});
	


});